<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::ParticleSorting Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_particle_sorting.html">ParticleSorting</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_s_p_h_1_1_particle_sorting-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::ParticleSorting Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The class for sorting particle according a given sequence.  
 <a href="class_s_p_h_1_1_particle_sorting.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="particle__sorting_8h_source.html">particle_sorting.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a92dabfd53934c7598a88b092d5d9d085"><td class="memItemLeft" align="right" valign="top"><a id="a92dabfd53934c7598a88b092d5d9d085"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ParticleSorting</b> (<a class="el" href="class_s_p_h_1_1_real_body.html">RealBody</a> *real_body)</td></tr>
<tr class="separator:a92dabfd53934c7598a88b092d5d9d085"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88fb373507d17e0a20208b93029e0e24"><td class="memItemLeft" align="right" valign="top"><a id="a88fb373507d17e0a20208b93029e0e24"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>assignBaseParticles</b> (<a class="el" href="class_s_p_h_1_1_base_particles.html">BaseParticles</a> *base_particles)</td></tr>
<tr class="separator:a88fb373507d17e0a20208b93029e0e24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd14478cd0dedc753ac97c1ee6a6403b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_particle_sorting.html#afd14478cd0dedc753ac97c1ee6a6403b">sortingParticleData</a> (<a class="el" href="classsize__t.html">size_t</a> *begin, <a class="el" href="classsize__t.html">size_t</a> size)</td></tr>
<tr class="separator:afd14478cd0dedc753ac97c1ee6a6403b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a659594e1802d1063a4b7a4f1043511e2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_particle_sorting.html#a659594e1802d1063a4b7a4f1043511e2">updateSortedId</a> ()</td></tr>
<tr class="separator:a659594e1802d1063a4b7a4f1043511e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ab5d212d0365d151bc991ae881db29d22"><td class="memItemLeft" align="right" valign="top"><a id="ab5d212d0365d151bc991ae881db29d22"></a>
<a class="el" href="class_s_p_h_1_1_base_particles.html">BaseParticles</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>base_particles_</b></td></tr>
<tr class="separator:ab5d212d0365d151bc991ae881db29d22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af62e0fa6386a5cdfe60e576feb42ba56"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_swap_sortable_particle_data.html">SwapSortableParticleData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_particle_sorting.html#af62e0fa6386a5cdfe60e576feb42ba56">swap_sortable_particle_data_</a></td></tr>
<tr class="separator:af62e0fa6386a5cdfe60e576feb42ba56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7b8377a88a9c0886773ee255b4a3836"><td class="memItemLeft" align="right" valign="top"><a id="ad7b8377a88a9c0886773ee255b4a3836"></a>
<a class="el" href="struct_s_p_h_1_1_compare_particle_sequence.html">CompareParticleSequence</a>&#160;</td><td class="memItemRight" valign="bottom"><b>compare_</b></td></tr>
<tr class="separator:ad7b8377a88a9c0886773ee255b4a3836"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7e0a885389032892f1f75cc616a500f"><td class="memItemLeft" align="right" valign="top"><a id="ae7e0a885389032892f1f75cc616a500f"></a>
<a class="el" href="classtbb_1_1interafce9_1_1internal_1_1_quick_sort_particle_range.html">tbb::interafce9::internal::QuickSortParticleRange</a>&lt; <a class="el" href="classsize__t.html">size_t</a> *, <a class="el" href="struct_s_p_h_1_1_compare_particle_sequence.html">CompareParticleSequence</a>, <a class="el" href="class_s_p_h_1_1_swap_sortable_particle_data.html">SwapSortableParticleData</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><b>quick_sort_particle_range_</b></td></tr>
<tr class="separator:ae7e0a885389032892f1f75cc616a500f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11dd5610691fc2460fbebae11cbc9ea8"><td class="memItemLeft" align="right" valign="top"><a id="a11dd5610691fc2460fbebae11cbc9ea8"></a>
<a class="el" href="structtbb_1_1interafce9_1_1internal_1_1_quick_sort_particle_body.html">tbb::interafce9::internal::QuickSortParticleBody</a>&lt; <a class="el" href="classsize__t.html">size_t</a> *, <a class="el" href="struct_s_p_h_1_1_compare_particle_sequence.html">CompareParticleSequence</a>, <a class="el" href="class_s_p_h_1_1_swap_sortable_particle_data.html">SwapSortableParticleData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>quick_sort_particle_body_</b></td></tr>
<tr class="separator:a11dd5610691fc2460fbebae11cbc9ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The class for sorting particle according a given sequence. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="afd14478cd0dedc753ac97c1ee6a6403b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd14478cd0dedc753ac97c1ee6a6403b">&#9670;&nbsp;</a></span>sortingParticleData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::ParticleSorting::sortingParticleData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsize__t.html">size_t</a> *&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classsize__t.html">size_t</a>&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>sorting particle data according to the cell location of particles </p>

</div>
</div>
<a id="a659594e1802d1063a4b7a4f1043511e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a659594e1802d1063a4b7a4f1043511e2">&#9670;&nbsp;</a></span>updateSortedId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::ParticleSorting::updateSortedId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>update the reference of sorted data from unsorted data </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="af62e0fa6386a5cdfe60e576feb42ba56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af62e0fa6386a5cdfe60e576feb42ba56">&#9670;&nbsp;</a></span>swap_sortable_particle_data_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_p_h_1_1_swap_sortable_particle_data.html">SwapSortableParticleData</a>* SPH::ParticleSorting::swap_sortable_particle_data_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>using pointer because it is constructed after particles. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/particles/<a class="el" href="particle__sorting_8h_source.html">particle_sorting.h</a></li>
<li>SPHINXsys/src/shared/particles/<a class="el" href="particle__sorting_8cpp.html">particle_sorting.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
